/**
 * 
 */
package org.vsg.stock.basic.domain;

import java.util.List;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.OneToMany;

import org.hibernate.annotations.Proxy;

/**
 * @author vison
 *
 */
@Entity
@DiscriminatorValue("G")
@Proxy(lazy = true)
public class GroupingStockInfo extends StockInfo {

    @OneToMany
    @JoinTable(
            name="STOCK_INFO_PART_MAP",
            joinColumns = @JoinColumn( name="G_STOCK_CODE"),
            inverseJoinColumns = @JoinColumn( name="R_STOCK_CODE")
    )
	private List<RealStockInfo> assoPart;

	public List<RealStockInfo> getAssoPart() {
		return assoPart;
	}

	public void setAssoPart(List<RealStockInfo> assoPart) {
		this.assoPart = assoPart;
	}

	
	
}
